#include"ThreadPool.hpp"
#include"Task.hpp"
int main()
{
    // ENABLE_CONSOLE_LOG();
    ENABLE_FILE_LOG();
    // std::shared_ptr<ThreadPool<int>> tp = std::make_shared<ThreadPool<int>>();
    std::shared_ptr<ThreadPool<task_t>> tp = std::make_shared<ThreadPool<task_t>>();
    tp->start();
    int cnt = 10;
    while(cnt--){
        tp->pushTask(Task);
        sleep(1);
    }

    tp->stop();
    sleep(5);
    tp->wait();
    return 0;
}
